import {createApp, VueElement} from 'vue'
import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/theme-chalk/index.css'
import Component from './components/Component.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import chatMoments from "@/components/ChatMoments.vue";
import VueCookies from 'vue-cookies';





const app = createApp(App)
app.use(store).use(VueCookies).use(ElementPlus).use(router).mount('#app')
//注册com1
app.component('Component',Component)

//注册chat
/**
 * 显示单个朋友圈
 */
app.component('ChatMoments',chatMoments)


//注册图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// createApp(App).use(ElementPlus).use(store).use(router).mount('#app')
